package org.topdowntdd.sample.appfusemodularstruts.manager.impl;

import org.appfuse.service.impl.GenericManagerImpl;
import org.topdowntdd.sample.appfusemodularstruts.dao.PersonDao;
import org.topdowntdd.sample.appfusemodularstruts.manager.PersonManager;
import org.topdowntdd.sample.appfusemodularstruts.model.Person;

public class PersonManagerImpl extends GenericManagerImpl<Person, Long> implements
		PersonManager {

	public PersonManagerImpl(PersonDao personDao) {
		super(personDao);
	}

	public boolean exists(Long id) {
		boolean exists = genericDao.exists(id);
		return exists;
	}

	public Person get(Long id) {
		Person person = genericDao.get(id);
		return person;
	}

	public void remove(Long id) {
		genericDao.remove(id);
	}

	public Person save(Person object) {
		Person personSaved = genericDao.save(object);
		return personSaved;
	}

}
